<%@ page import="java.sql.ResultSet"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UFT-8">
<title>房间信息</title>
<style type="text/css">
td{
text-align:center;
}

</style>
</head>
<body>
<center>
<s:form action="RoomAction" method="post" theme="simple">
楼号：<s:textfield label="楼号" name="BuildNo"/>
负责人：<s:textfield label="负责人" name="EmId" />
部门：<s:select name="DeptId"  list="#{'0':'==请选择==','1':'数信学院'}"/> 
<s:submit value="查询"/>
</s:form>
<br>
<s:form action="RoInsertOrDelete" method="get" theme="simple">
<table border=1px;>
<tr><td>房间编号</td><td>楼号</td><td>房间号</td><td>使用面积</td><td>建筑面积</td><td>现状</td><td>负责人</td><td>部门</td><td>中心</td><td>实验室</td><td>用房类别</td><td>描述</td></tr>
<s:iterator value="rooms" id="ro" >
<tr>
<td ><s:property value="#ro.RoomId"/></td>
<td><s:property value="#ro.BuildNo"/></td>
<td><s:property value="#ro.RoomNo"/></td>
<td><s:property value="#ro.UseArea"/></td>
<td><s:property value="#ro.BuildArea"/></td>
<td><s:property value="#ro.State"/></td>
<td><s:property value="#ro.EmId"/></td>
<td><s:property value="#ro.DeptId"/></td>
<td><s:property value="#ro.SubDeptId"/></td>
<td><s:property value="#ro.ThreeDeptId"/></td>
<td><s:property value="#ro.RoomType"/></td>
<td><s:property value="#ro.Memo"/></td> 
</tr>
</s:iterator>
</table>
<br>
<table >
<tr>
<td><s:submit name="insert" value="增加房间"/></td> 
<td><s:submit name="delete" value="删除"/></td>
</tr>
</table>
</s:form>
</center>
</body>
</html>